<!--
SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>

SPDX-License-Identifier: AGPL-3.0-or-later
-->

<. let num = count + 1; .>
<fieldset class="sitekey__level-container" id="level-group-<.= num .>">
  <legend class="sitekey__level-title">
    Level <.= num .>
  </legend>
  <label class="sitekey-form__level-label" for="visitor<.= num .>"
    >Visitor
    <input
		readonly="readonly"
      class="sitekey-form__level-input"
      type="number"
      name="visitor<.= num .>"
      value="<.= level.visitor_threshold .>"
	  readonly
      id="visitor<.= num .>"
    />
  </label>

  <label class="sitekey-form__level-label" for="difficulty<.= num .>">
    Difficulty
    <input
      type="number"
      id="difficulty<.= num .>"
      class="sitekey-form__level-input"
      value="<.= level.difficulty_factor .>"
	  readonly
      id="difficulty<.= num .>"
    />
  </label>
</fieldset>
